Skip to content

Comments

fix: drain non-byte console events to unblock initial tick on Windows#27

Merged
meszmate merged 1 commit intomainfrom
fix/24-initial-tick-doesnt-work-without-key-press-in-win11
Feb 18, 2026
Merged

fix: drain non-byte console events to unblock initial tick on Windows#27
meszmate merged 1 commit intomainfrom
fix/24-initial-tick-doesnt-work-without-key-press-in-win11

Conversation

@meszmate
Copy link
Owner

  • Remove ENABLE_WINDOW_INPUT from console input mode to prevent spurious wake-ups
  • Add PeekNamedPipe check for ConPTY/pipe-based stdin
  • Drain focus, menu, and window-size events before reading so the initial tick fires without needing a key press

Fixes #24

@meszmate meszmate linked an issue Feb 18, 2026 that may be closed by this pull request
@meszmate meszmate merged commit de59fd7 into main Feb 18, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Initial tick doesn't work without key press in Win11

1 participant